//
//  SHHelper.h
//
#pragma mark -- 相机
#import <AVFoundation/AVCaptureDevice.h>
#import <AVFoundation/AVMediaFormat.h>
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@interface SHHelper : NSObject


//字符串文字的长度
+ (CGFloat)widthOfString:(NSString *)string font:(UIFont*)font height:(CGFloat)height;

//字符串文字的高度
+ (CGFloat)heightOfString:(NSString *)string font:(UIFont*)font width:(CGFloat)width;

//获取今天的日期：年月日
+ (NSString *)getTodayDate;

//邮箱
+ (BOOL) justEmail:(NSString *)email;

//手机号码验证
+ (BOOL) justMobile:(NSString *)mobile;

//车牌号验证
+ (BOOL) justCarNo:(NSString *)carNo;

//车型
+ (BOOL) justCarType:(NSString *)CarType;

//用户名
+ (BOOL) justUserName:(NSString *)name;

//密码
+ (BOOL) justPassword:(NSString *)passWord;

//昵称
+ (BOOL) justNickname:(NSString *)nickname;

//身份证号
+ (BOOL) justIdentityCard: (NSString *)identityCard;
//验证银行卡号
+ (BOOL)checkCardNo:(NSString*)cardNo;
//2.保持原来的长宽比，生成一个缩略图
+ (UIImage *)thumbnailWithImageWithoutScale:(UIImage *)image size:(CGSize)asize;
//获取当前最上层视图
+ (UIViewController *)currentViewController;


+ (void)checkUserAVAuthorizationStatusVc:(UIViewController *)vc complection:(void(^)(AVAuthorizationStatus status))successBlock;

//是否是整数
+ (BOOL)validateNumber:(NSString *) textString;




@end


